<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%     
    response.setHeader("Content-Disposition", "attachment; filename=caseLog.xls"); 
    response.setHeader("Content-Description", "JSP Generated Data"); 
    response.setContentType("application/vnd.ms-excel");
%>
<table border="1">
	<tr>
		<td>구분</td>
		<td>제(피)소일</td>
		<td>심급</td>
		<td>관할법원</td>
		<td>사건번호</td>
		<td>사건명</td>
		<td>부서명</td>
		<td>PROJ.</td>
		<td>소가</td>
		<td>원고</td>
		<td>피고</td>
		<td>사건개요</td>
		<td>기타</td>
	</tr>
	<s:if test="%{list.size == 0}">
		<tr>                   
	    	<td colspan="13">
	        	데이터가 없습니다.
	        </td>
	    </tr>                    	
    </s:if>
	<s:iterator value="list" status="i">
	<tr>	
		<td><s:property value="status_flag" /></td>
		<td><s:property value="case_date" /></td>
		<td><s:property value="court_step" /></td>
		<td><s:property value="court_name" /></td>
		<td><s:property value="case_no" /></td>
		<td><s:property value="case_name" /></td>
		<td><s:property value="mem_dept" /></td>
		<td><s:property value="order_no" /></td>
		<td><s:property value="sue_money" /></td>
		<td><s:property value="plaintiff" /></td>
		<td><s:property value="defendant" /></td>
		<td><s:property value="summary" /></td>
		<td><s:property value="etc" /></td>
	</tr>
	</s:iterator>
</table>

